package com.rent.message.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rent.message.pojo.entity.ChatMessage;
import com.rent.message.pojo.entity.Conversation;

import java.util.Map;

public interface ConversationService extends IService<Conversation> {

    void setUnreadCount(Long getUserId,Long postUserId);

    void updateUnreadCountBatch(Map<String, Integer> unreadCounts);

    void unreadClear(Long userId);

    Integer getUnreadCount(Long userId, Long myUserId);

    void setLastMessage(ChatMessage  message);



}
